/*
 *  gluUnProject.h
 *  wolf3d
 *
 *  Created by James Weatherley on 05/10/2009.
 *  Copyright 2009 James Weatherley. All rights reserved.
 *
 */	

#pragma once
#include <OpenGLES/ES1/gl.h>

void transform_point(GLfloat out[4], const GLfloat m[16], const GLfloat in[4]);

GLint gluUnProject(GLfloat winx, GLfloat winy, GLfloat winz,
			 const GLfloat model[16], const GLfloat proj[16],
			 const GLint viewport[4],
				   GLfloat * objx, GLfloat * objy, GLfloat * objz);